package com.epfresh.bean;

public class HomeCity {
    /*
      "name" : "上海市",
          "code" : 31,
          "service" : "1,3,4",
          "parentCode" : 31,
          "parentName" : "上海市"
      } ],
    *
    * */
    private String name;
    private String code;
    private String service;
    private String parentCode;
    private String parentName;

    private boolean isSelect;

    public HomeCity() {
    }

    public HomeCity(String name, String code, String service, String parentCode, String parentName) {
        this.name = name;
        this.code = code;
        this.service = service;
        this.parentCode = parentCode;
        this.parentName = parentName;
    }


    public boolean isSelect() {
        return isSelect;
    }

    public void setSelect(boolean select) {
        isSelect = select;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getService() {
        return service;
    }

    public void setService(String service) {
        this.service = service;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    @Override
    public String toString() {
        return name == null ? "" : name;
    }
}
